package com.hantek.lms.login.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lether
 * @since 2017-11-16
 */
@TableName("DOMAIN_USER")
public class DomainUser extends Model<DomainUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
	private String id;
    /**
     * 用户名
     */
	@TableField("USERNAME")
	private String username;
    /**
     * 密码
     */
	@TableField("PASSWORD")
	private String password;
    /**
     * 密码盐
     */
	@TableField("SALT")
	private String salt;
    /**
     * 记住我（0.不记住1.记住，默认0）
     */
	@TableField("REMEBME")
	private Integer remebme;
    /**
     * 邮箱
     */
	@TableField("EMAIL")
	private String email;
    /**
     * 手机号
     */
	@TableField("MOBILE")
	private String mobile;
    /**
     * 用户类型
     */
	@TableField("USR_TYPE")
	private Integer usrType;
    /**
     * 是否可用
     */
	@TableField("IS_ENABLE")
	private Integer isEnable;
    /**
     * 是否完善个人信息
     */
	@TableField("IS_PERFECT")
	private Integer isPerfect;
    /**
     * 创建人
     */
	@TableField("CREATE_USER")
	private String createUser;
    /**
     * 创建时间
     */
	@TableField("CREATE_TIME")
	private Date createTime;
    /**
     * 修改人
     */
	@TableField("MODIFY_USER")
	private String modifyUser;
    /**
     * 修改时间
     */
	@TableField("MODIFY_TIME")
	private Date modifyTime;
    /**
     * 是否锁定
     */
	@TableField("IS_ACTIVITY")
	private Integer isActivity;
    /**
     * 用户头像
     */
	@TableField("PHOTO")
	private String photo;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Integer getRemebme() {
		return remebme;
	}

	public void setRemebme(Integer remebme) {
		this.remebme = remebme;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getUsrType() {
		return usrType;
	}

	public void setUsrType(Integer usrType) {
		this.usrType = usrType;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public Integer getIsPerfect() {
		return isPerfect;
	}

	public void setIsPerfect(Integer isPerfect) {
		this.isPerfect = isPerfect;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getModifyUser() {
		return modifyUser;
	}

	public void setModifyUser(String modifyUser) {
		this.modifyUser = modifyUser;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getIsActivity() {
		return isActivity;
	}

	public void setIsActivity(Integer isActivity) {
		this.isActivity = isActivity;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DomainUser{" +
			"id=" + id +
			", username=" + username +
			", password=" + password +
			", salt=" + salt +
			", remebme=" + remebme +
			", email=" + email +
			", mobile=" + mobile +
			", usrType=" + usrType +
			", isEnable=" + isEnable +
			", isPerfect=" + isPerfect +
			", createUser=" + createUser +
			", createTime=" + createTime +
			", modifyUser=" + modifyUser +
			", modifyTime=" + modifyTime +
			", isActivity=" + isActivity +
			", photo=" + photo +
			"}";
	}
}
